/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package jabifsample;

import com.orhandemirel.jabif.*;
import java.io.FileNotFoundException;
import java.io.IOException;


/**
 *
 * @author orhan
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        try {
            
            Abif abif = new Abif("file.ab1");
            AbifTag[] tags = abif.getTags();

            for(AbifTag tag : tags)
            {
//                if(tag.getId().equals("DATA1"))
//                {
//                    Object[] data = tag.getData();
//                    for(Object d : data)
//                        System.out.println(d);
//                }
                
                 
            }
           
           System.out.println( abif.getBaseOrder() );

           int[] rawData = abif.getRawData(1);

        } catch (FileNotFoundException ex) {
            System.out.println("File not found!");
        } catch (IOException ex) {
            System.out.println("IO Exception");
        }

    }

}
